import Cookies from 'js-cookie'
var storage=window.localStorage;//初始化
const TokenKey = 'vue_admin_template_token'

export function getToken() {
  // storage.getItem(TokenKey)
  return storage.getItem(TokenKey) 
  // Cookies.get(TokenKey)
}

export function setToken(token) {
  return storage.setItem(TokenKey,token);
  // return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return storage.removeItem(TokenKey);
  // Cookies.remove(TokenKey)
}
